package com.enhe.gck.pojo;
 import java.util.Date;
 import java.lang.String;
 import java.lang.Integer;
 import java.math.BigDecimal;
 import java.lang.Long;
 import java.lang.Float;
 import java.lang.Double;
 import com.kuangkie.carbon.record.Updatable;
 import com.kuangkie.carbon.record.annotation.Attribute;
 import com.kuangkie.carbon.record.annotation.CarbonRecord;
 import com.kuangkie.carbon.record.annotation.RecordCode;
 import com.alibaba.fastjson.annotation.JSONField;
 import com.kuangkie.carbon.uid.model.UidManager;

// 发送记录
@CarbonRecord("hwane17164")
public class ErrorRecord implements Updatable{
    @JSONField(name="唯一编码")
    @RecordCode
    private Long id = UidManager.getLongUID();

    // 时间
    @JSONField(name="时间")
    @Attribute("hwan17167")
    private Date dateTime;

    // 类型
    @JSONField(name="类型")
    @Attribute("hwan17169")
    private String type;

    // 发送数据
    @JSONField(name="发送数据")
    @Attribute("hwan17170")
    private String data;

    // 是否成功
    @JSONField(name="是否成功")
    @Attribute("hwan17336")
    private boolean isOk;

    // 名称
    @JSONField(name="名称")
    @Attribute("hwan17349")
    private String name;

    // 命令
    @JSONField(name="命令")
    @Attribute("hwan17350")
    private String command;

    // 请求结果
    @JSONField(name="请求结果")
    @Attribute("hwan18115")
    private String requestResults;

    public Date getDateTime() { 
        return dateTime;
    }
    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }
    public String getData() { 
        return data;
    }
    public void setData(String data) {
        this.data = data;
    }
    public boolean getIsOk() { 
        return isOk;
    }
    public void setIsOk(boolean isOk) {
        this.isOk = isOk;
    }
    public String getName() { 
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Long getId() { 
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getType() { 
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getCommand() { 
        return command;
    }
    public void setCommand(String command) {
        this.command = command;
    }
    public String getRequestResults() { 
        return requestResults;
    }
    public void setRequestResults(String requestResults) {
        this.requestResults = requestResults;
    }
    @Override
    public String getRecordCode() {
        return this.id==null ? null : this.id.toString();
    }
}